Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

HCL Notes/Domino 8.5 Forum (includes Notes Traveler)

Previous Next
Subject: Illegal function call and Shell function
Feedback Type: Problem
Product Area: Notes Client
Technical Area: Application Development
Platform: Windows
Release: 8.5.1
Reproducible: Always

Hi,
I am still struggling with making the Shell function work in Lotus Notes 8.5.1 FP2.

The situation:
We have an integrator with another product, which installs a .nsf file and adds a icon to the users Lotus Notes.
In Windows XP/Notes 7/Notes 8 etc, it works fine, we forward the document from a database, it has a button on it and an executable file, the user presses the button, and the file is extracted to their PC and runs.

In Windows 7 this still doesn't work, due to problems with User Account Control (UAC). Turning off UAC resolves this first issue, but that is not really an option given the number of users.

If you use the Shell function to trigger e.g. CALC.exe for Windows Calculator, it works fine.
Presumably it works fine for other Windows programs also.
But for a customized executable, it always returns 'Illegal function call'.

Please explain the way round this problem..

Additionally, I'd like to point out the following:
If you create a button in an email with Simple Action, @Formula function, and user say @Command([Execute];"C:\\Users\\me\\AppData\\Local\\Temp\\CustomExecutableFileName.exe"), then this works as expected - that is, it gives a UAC prompt on which you can select 'Yes' and then the program runs.
(Frankly the UAC prompt is annoying to, but at least it works as Microsoft designed it this way).
The LotusScript Shell command does not give this prompt, and instead simply errors out with Illegal function call.
And you cannot run an @Command from LotusScript, unless someone knows of a way?


Feedback number WEBB8HMJJZ created by ~Evelyn Cisnither on 06/08/2011

Status: Open
Comments:

Illegal function call and Shell fun... (~Evelyn Cisnith... 8.Jun.11)
. . Have you tried an API call instead?... (~Zelda Ekresask... 8.Jun.11)
. . . . API scary (~Evelyn Cisnith... 9.Jun.11)
. . . . . . The R6 Forum has examples... (~Zelda Ekresask... 9.Jun.11)
. . Try using WScript.Shell instead (~Tip Opjipymanl... 8.Jun.11)
. . . . WScript.Shell (~Evelyn Cisnith... 9.Jun.11)




Printer-friendly

Search this forum

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS